<?php
/* @var $this SlideshowController */
/* @var $model Slideshow */

$this->breadcrumbs=array(
	'Slideshows'=>array('index'),
	'Manage',
);

$this->menu=array(
	array('label'=>'List Slideshow', 'url'=>array('index')),
	array('label'=>'Create Slideshow', 'url'=>array('create')),
);
?>

<h1>Manage Slideshows</h1>
<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'slideshow-grid',
	'dataProvider'=>$model->search(),
	'columns'=>array(
		'id',
		'link',
		'content',
		'fileID',
		'sort',
		array(
  		'name'=>'enabled',
  		'value'=>'($data->enabled==1)?Yii::t("default", "Có"):Yii::t("default", "Không")'
		),
		array(
  		'name'=>'createddate',
  		'value'=>'date("d-m-Y G:i",$data->createddate)'
		),
		array(
  		'name'=>'modifieddate',
  		'value'=>'date("d-m-Y G:i",$data->modifieddate)'
		),
		array(
			'class'=>'CButtonColumn',
		),
	),
)); ?>
